package cn.yuanqiao.system.mapper;

import cn.yuanqiao.system.domain.TenantOperLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 操作日志 数据层
 *
 * @author ruoyi
 */
public interface TenantOperLogMapper
{
    /**
     * 新增操作日志
     *
     * @param operLog 操作日志对象
     */
    public int insertOperlog(TenantOperLog operLog);

    /**
     * 查询系统操作日志集合
     *
     * @param operLog 操作日志对象
     * @return 操作日志集合
     */
    public List<TenantOperLog> selectOperLogList(TenantOperLog operLog);

    /**
     * 批量删除系统操作日志
     *
     * @param operIds 需要删除的操作日志ID
     * @return 结果
     */
    public int deleteOperLogByIds(@Param("operIds") Long[] operIds,@Param("tableName") String tableName);

    /**
     * 查询操作日志详细
     *
     * @param operId 操作ID
     * @return 操作日志对象
     */
    public TenantOperLog selectOperLogById(Long operId);

    /**
     * 清空操作日志
     */
    public void cleanOperLog(String tableName);

    int isExistTable(String tableName);

    int createSysOperLog(String tableName);

    List<TenantOperLog> selectOperLogListBySysauditor(TenantOperLog operLog);

    List<TenantOperLog> selectOperLogListBySyssso(TenantOperLog operLog);

    Map operLogTongjiBySysauditor(TenantOperLog operLog);

    Map operLogTongjiBySyssso(TenantOperLog operLog);

    Map operLogTongji(TenantOperLog operLog);

    public int updatAuditByIds(@Param("operIds") List<Long> operIds,@Param("tableName") String tableName,@Param("auditOpinion") String auditOpinion);
    public int selectOperLogcout(@Param("infoIds") Long[] infoIds,@Param("tenantCode") String tenantCode);
}
